package com.lianyi.push.entity;

import java.io.Serializable;

/**
 * ================================================
 * 作者: leilei
 * 版本: 1.0
 * 创建日期: 2018/8/15 23:21
 * 描述: 自定义消息对象
 * 修订历史:
 * ================================================
 */
public class TcpMsgBean implements Serializable {
    private static final long serialVersionUID = -7033707301911915196L;
    private String type;//消息类型
    private String body;//消息内容
    private long length;//消息长度

    public TcpMsgBean() {
    }

    public TcpMsgBean(String type, String body, long length) {
        this.type = type;
        this.body = body;
        this.length = length;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getBody() {
        return body;
    }

    public void setBody(String body) {
        this.body = body;
    }

    public long getLength() {
        return length;
    }

    public void setLength(long length) {
        this.length = length;
    }

    @Override
    public String toString() {
        return "TcpMsgBean[type:" + type +
                ",body:" + body +
                ",length:" + length
                + "]";
    }
}
